package com.lengchangjing.ConstructionalPatterns.FactoryPattern.FactoryMethodPattern;

public class Client {
    public static void main(String[] args) {
        //使用ConcreteFactoryA 创建 ProductA
        Factory factoryA = new ConcreteFactoryA();
        Product productA = factoryA.Create();
        productA.DoSomething();

        //使用ConcreteFactoryB 创建 ProductB
        Factory factoryB = new ConcreteFactoryB();
        Product productB = factoryB.Create();
        productB.DoSomething();

    }
}
